package jin.si.com.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @description: web生命周期
 * @ClassName TestServletContextListener
 * @Author MT
 * @Date 2021/5/11 11:46
 **/

@WebListener
public class TestServletContextListener implements ServletContextListener{

    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("web容器初始化");
    }

    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("web容器销毁");
    }



}
